package com.example.demo.mapper;

import com.example.demo.entity.*;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface FoodMapper {
    List<FoodTypeInfo> findFoodTypeInfo();

    List<FoodAreaInfo> findFoodAreaInfo();

    List<FoodInfo> findFoodInfo();

    List<FoodPointRank> findFoodPointRank();

    List<FoodPopularityRank> findFoodPopularityRank();

    FoodInfo findFoodInfoByname(String name);

    void insertFood(FoodInfo foodInfo);

    void addFoodAreaInfo(String area);

    void addFoodTypeInfo(String type);

    void insertFoodPointRank(FoodInfo foodInfo);

    void insertFoodPopularity(FoodInfo foodInfo);

    FoodInfo findFoodById(int id);

    void updateFood(FoodInfo foodInfo);

    void updateFoodPointRank(FoodInfo foodInfo);

    FoodPointRank findFoodPointRankByname(String name);

    FoodPopularityRank findFoodPopularityRankByname(String name);

    void updateFoodPopularityRank(FoodInfo foodInfo);

    void reduceFoodAreaInfo(String area);

    void reduceFoodTypeInfo(String type);


    void deleteFoodById(int id);

    void deleteFoodPointRankByName(String name);

    void deleteFoodPopularRankByName(String name);
}
